package com.gd.server.action;


import java.util.UUID;

import com.gd.common.entities.S_WaitBottle;
import com.gd.common.net.RequestToServer;
import com.gd.common.net.Response;
import com.gd.server.dao.WaitBottleDao;
import com.gd.server.service.DaoFactory;



public class GetBottleAction extends ServerAction{
	
	@Override
	public void executeSome(RequestToServer request, Response response) throws Exception {
		
		UUID sessionId = (UUID) request.getParameter("SessionId");
		int type  = (Integer) request.getParameter("Type");
		int userId  = (Integer) request.getParameter("UserId");
		
		WaitBottleDao waitBottleDao = DaoFactory.getWaitBottleDao();
		S_WaitBottle bottle = waitBottleDao.getWaitBottle(type,userId);
		response.addParameter("Bottle", bottle);
	}
}
